package com.itheima.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/*
* 博客实体类*/

@Data
@Table(name = "t_blog")
public class Blog  implements Serializable {

    @Id
    @Column(name = "uid")
    private String uid;

    private String title;
    private String summary;
    private String content;

    @Column(name = "tag_uid")
    private String tagUid;

    @Column(name = "click_count")
    private Integer clickCount;

    @Column(name = "collect_count")
    private Integer collectCount;

    @Column(name = "file_uid")
    private String fileUid;

    private Integer status;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "admin_uid")
    private String adminUid;

    @Column(name = "is_original")
    private String isOriginal;

    private String author;

    @Column(name = "articles_part")
    private String articlesPart;

    @Column(name = "blog_sort_uid")
    private String blogSortUid;

    private Integer level;

    @Column(name = "is_publish")
    private String isPublish;

    private Integer sort;

    @Column(name = "start_comment")
    private Integer startComment;

    private List<Tag>tagList;
    private List<String> photoList;
    private BlogSort blogSort;
}
